home *** CD-ROM | disk | FTP | other *** search
/ Practical Web Pages 2004 September / PracticalWebPages-WPG13-09-2004-Coverdisc.iso / pc / Software / Toolkit / Sothink SWF Quicker 1.5 / data1.cab / Public_Files / Classes / Camera.as < prev    next >
Encoding:
Text File  |  2004-06-14  |  3.1 KB  |  25 lines

  1. class Camera
  2. {
  3.     var activityLevel                                                    // The amount of motion the camera is detecting.
  4.     var bandwidth                                                        // The maximum amount of bandwidth the current outgoing video feed can use, in bytes.
  5.     var currentFps                                                       // The rate at which the camera is capturing data, in frames per second.
  6.     var fps                                                              // The rate at which you would like the camera to capture data, in frames per second.
  7.     var height                                                           // The current capture height, in pixels.
  8.     var index                                                            // The index of the camera, as reflected in the array returned by Camera.names.
  9.     var motionLevel                                                      // The amount of motion required to invoke Camera.onActivity(true).
  10.     var motionTimeOut                                                    // The number of milliseconds between the time when the camera stops detecting motion and the time Camera.onActivity(false) is invoked.
  11.     var muted                                                            // A Boolean value that specifies whether the user has allowed or denied access to the camera.
  12.     var name                                                             // The name of the camera as specified by the camera hardware.
  13.     var names                                                            // Class property; an array of strings reflecting the names of all available video capture devices, including video cards and cameras.
  14.     var quality                                                          // An integer specifying the required level of picture quality, as determined by the amount of compression being applied to each video frame.
  15.     var width                                                            // The current capture width, in pixels.
  16.  
  17.     function get(index)                                                  // Returns a reference to a Camera object for capturing video. To actually begin capturing the video, you must attach the Camera object to a Video object
  18.     function setMode(width, height, fps, favorSize)                      // Sets aspects of the camera capture mode, including height, width, and frames per second.
  19.     function setMotionLevel(sensitivity, timeout)                        // Specifies how much motion is required to invoke Camera.onActivity(true) and how much time should elapse without motion before Camera.onActivity(false) is invoked.
  20.     function setQuality(bandwidth, frameQuality)                         // An integer that specifies the maximum amount of bandwidth that the current outgoing video feed can use, in bytes per second.
  21.  
  22.     function onActivity()                                                // Invoked when the camera starts or stops detecting motion.
  23.     function onStatus()                                                  // Invoked when the user allows or denies access to the camera.
  24. }
  25.